using System;

namespace Terra.Core.Infrastructure.Email.Options;

/// <summary>
/// 邮件服务配置选项
/// </summary>
public class EmailOptions
{
    /// <summary>
    /// SMTP服务器地址
    /// </summary>
    public string SmtpServer { get; set; }

    /// <summary>
    /// SMTP端口
    /// </summary>
    public int Port { get; set; }

    /// <summary>
    /// 是否启用SSL
    /// </summary>
    public bool EnableSsl { get; set; }

    /// <summary>
    /// SMTP用户名
    /// </summary>
    public string Username { get; set; }

    /// <summary>
    /// SMTP密码
    /// </summary>
    public string Password { get; set; }

    /// <summary>
    /// 发件人地址
    /// </summary>
    public string FromAddress { get; set; }

    /// <summary>
    /// 发件人显示名称
    /// </summary>
    public string FromName { get; set; }
}